home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 4146 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.8 KB

  1. Path: mail2news.demon.co.uk!amdev.demon.co.uk
  2. From: Simon Brown <simes@amdev.demon.co.uk>
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Directing files to a con: or similar
  5. Date: Wed, 14 Feb 96 20:48:38 GMT
  6. Message-ID: <9602142048.AA00fp4@amdev.demon.co.uk>
  7. References: <9602131939.AA003j6@ozzy.demon.co.uk>
  8. X-NNTP-Posting-Host: amdev.demon.co.uk
  9. X-WordOfTheDay: Turgid.
  10. X-Newsreader: ADMaN 1.7 Copyright 1995 S.T.Brown
  11. X-Mail2News-Path: disperse.demon.co.uk!post.demon.co.uk!amdev.demon.co.uk
  12.  
  13.  From the frantic fingers of Brian Skreeg:
  14.  
  15. >     Hi folks,
  16. > I'm writing an IRC bot at the moment but seem to have got stuck right at the
  17. > beginning. I'm using Open() to open a file called TCP:dismayl/6667 <-server
  18. > and the file opens OK. Thing is I can't see what's going on. What's the easiest
  19. > way to direct this file to a con: or similar for viewing what it's up to?
  20. >      I'm also wanting a Gadtools GUI on the front of this beastie so I can
  21. > add easy updating of commands etc. What is the easiest way to do a loop in
  22. > C so I can have the file updating in realtime but still be able to check for
  23. > gadgets.
  24. >      At the mo I've got that Wait(1<<sigbit.thinummie) in so this halts my
  25. > program till a gadget is clicked. No good.
  26.  
  27. One possibility would be to make the window respond to IDCMP_INTUITICKS
  28. messages, which get sent approx. ten times a second. Then you could do a
  29. quick bit of updating in the intuitick handler and drop back to the event
  30. loop again. Obviously you wouldn't want to do too much work in this bit of
  31. code, as it'd lock the gadgets out while it was working.
  32.  
  33. -- 
  34. Simon Brown <simes@amdev.demon.co.uk> // Amazing Developments - When we
  35. http://uptown.turnpike.net/S/simes/ \X/ develop something, it's amazing.
  36.  
  37.         Amazing Developments - When we develop something, it's amazing.
  38.                                        
  39.